package com.jf.test.mvvm

import androidx.lifecycle.LifecycleOwner
import com.jf.test.mvvm.base.BaseFragVM

/**
 * @Class: MainFragVM
 * @Description:
 * @author: github.com/jackyflame
 * @Date: 2021/3/10
 */
class MainFragVM : BaseFragVM<MainFragment, MainFragPresenter>() {

    override fun initPresenter(owner: LifecycleOwner): MainFragPresenter? {
        return MainFragPresenter(owner,this);
    }

    override fun initData() {
        getFragment().testFromFragment();
    }

    fun testSend(){
        mPresenter?.testP();
    }
}